const authRoute = require('../routes/auth');
const jobsRoute = require('../routes/jobs');
const userRoute = require('../routes/user');

const authMiddleware = require('../middleware/auth');
const apiLimiterMiddleware = require('../middleware/api-limiter');

const mountRoutes = (app) => {
   app.use('/api/v1/auth', apiLimiterMiddleware, authRoute);
   app.use('/api/v1/jobs', authMiddleware, jobsRoute);
   app.use('/api/v1/user', authMiddleware, userRoute);
};

module.exports = mountRoutes;
